<!DOCTYPE HTML>
<html>
  <head>
    <title>Videos</title>
        <link type = "image/x-icon" rel="SHORTCUT ICON" href="img/favicon.ico" />	
        <script type="text/javascript" src="jquery/jquery-1.7.1.min.js"></script>     
		<link rel="stylesheet" href="css/style.css" />
        <link rel="stylesheet" href="css/grid-12.css" />

        
  </head>
  <body>
    <div id="container" class="container_12">
    
    <?php
    include("inc/db.class.php");
		require("php/header.php");
		include("inc/functions.php");
		?>
      <div id="line" class="grid_12"></div>
			<div id="" class="grid_12">
				<h2>Editorial</h2>
				<?php

				$database = new Database();
				$get_video = "select * from editorial where `show` = 1 and `is_deleted`=0 order by `order`";
          foreach($database->get_records($get_video) as $video){
		  echo "<h3>".$video->title."</h3>"."<h5>".$video->description."</h5><iframe width='750' height='440' src='//www.youtube.com/embed/".$video->link."' frameborder='0' allowfullscreen></iframe>";
          //echo "<div style='width: 940px; height: 350px;'><img style='z-index: 10;' src='".$banner->path."' width='940' height='300' /><p style = 'margin-top: -20px; z-index: 1000;'>".$banner->title."</p></div>";
          }
				
?>
			</div>
						
			<?php require("php/footer.php"); ?>
    </div>
  </body>
</html>
